package sonnensystem;

/**
 *
 * @author Sebastian Bauer
 */
public class Stern extends Himmelskoerper {

    public Stern() {
        super();
        this.farbe = "#FFFF00";
    }

    @Override
    public String baueVRML() {
        return "DEF " + this.name + " Transform {\n"
                + "\t translation 0 0 0\n"
                + "\t children [\n"
                + "\t\t Shape {\n"
                + "\t\t\t geometry Sphere {\n"
                + "\t\t\t\t radius " + this.radius + "\n"
                + "\t\t\t }\n"
                + "\t\t\t appearance Appearance {\n"
                + "\t\t\t\t material Material {\n"
                + "\t\t\t\t\t emissiveColor " + this.farbeNachVRML() + "\n"
                + "\t\t\t\t }\n"
                + "\t\t\t }\n"
                + "\t\t}\n"
                + "\t ]\n"
                + "}\n\n";
    }
}
